package com.page.exception;

/**
 * 异常处理类
 * @Package com.page.exception
 * @File Exception.java
 * @author shuxin.zheng@net263.com
 * @date 2014-9-17 下午01:44:16
 */
public class Exception extends RuntimeException {

    private static final long serialVersionUID = 1L;
    private int errNum = 0;
    private String errInfo = "";

    public Exception(int errNum) {
        this.errNum = errNum;
    }

    public Exception(String errInfo) {
        this.errInfo = errInfo;
    }

    public Exception(int errNum, String errInfo) {
        this.errNum = errNum;
        this.errInfo = errInfo;
    }

    public void setErrNum(int errNum) {
        this.errNum = errNum;
    }

    public void setErrInfo(String errInfo) {
        this.errInfo = errInfo;
    }

    public int getErrNum() {
        return errNum;
    }

    public String getErrInfo() {
        return errInfo;
    }

}
